<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fb="http://www.facebook.com/2008/fbml">
	<head>
	  <title><% if @meta_title != nil %> <%= @meta_title %> <% else %> UDIP - udruga dizajnera i programera <% end %></title>
	  <% if @meta_description != nil %> <META NAME="Description" CONTENT="<%= @meta_description %>"> <% end %>
	  <% unless @doindex %> <meta name="robots" content="noindex,follow"> <% end %>
	  
  	  <%= stylesheet_link_tag :all, :recursive => true %>
	  
	  <%= javascript_include_tag 'jquery.min' %>
	  <%= javascript_include_tag 'dropdown' %>
	  <%= javascript_include_tag 'rails' %>
	  <%= javascript_include_tag 'application' %>
	  <%= javascript_include_tag 'slugs' %>

	  <%= javascript_include_tag 'markitup/jquery.markitup' %>
	  <%= javascript_include_tag 'markitup/sets/default/set.js' %>
	  <link rel="stylesheet" type="text/css" href="<%=root_url%>javascripts/markitup/skins/markitup/style.css" />
	  <link rel="stylesheet" type="text/css" href="<%=root_url%>javascripts/markitup/sets/default/style.css" />
	  <script type="text/javascript" >
		   $(document).ready(function() {
		      $(".bb-code").markItUp(mySettings);
		   });
	</script>

	  <%= javascript_include_tag 'syntax/shCore' %>
	  <%= javascript_include_tag 'syntax/shBrushXml' %>
  	  <%= javascript_include_tag 'syntax/shBrushJScript' %>
	  <%= javascript_include_tag 'syntax/shBrushPhp' %>
	  <%= javascript_include_tag 'syntax/shBrushPython' %>
	  <%= javascript_include_tag 'syntax/shBrushRuby' %>

	  <script type="text/javascript">SyntaxHighlighter.all();</script> 
	
	  <%= csrf_meta_tag %>
	  
	  <script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-10509804-16']);
		  _gaq.push(['_trackPageview']);
		
		  (function() {
		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
	</head>

	<body>
		<div id="admin_header">            
			<div id="inner_header">
		    	<%= link_to image_tag('logo.png', :id => "small_logo"), root_path %> 
		
	    </div> 
			</div>
			
			  
	          
	    <div id="menu">
	    	<div id="inner_header">       
		        <% if current_member then %> 
		        	<%= render 'shared/member_menu' %>
		        <% else %>        
		        	<%= render 'shared/guest_menu' %>
		        <% end %>	        
			</div>
	    </div>
	    
		<% if moderator? %> 
		    <div id="admin_menu">
		    	<div id="inner_header">    
					<%= render 'shared/admin_menu' %>
				</div>
		    </div>
	    <% end %>
	    
	    <div id="main">
	    	
	    	<%= render 'shared/flash' %>
	      

	      	<%= yield %>
	    </div>
	   
	    <div id="footer">
	      Udruga dizajnera i programera 2011
	    </div>
	    
	 <script>
      window.fbAsyncInit = function() {
        FB.init({appId: '201204103247228', status: true, cookie: true,
                 xfbml: true});
      };
      (function() {
        var e = document.createElement('script');
        e.type = 'text/javascript';
        e.src = document.location.protocol +
          '//connect.facebook.net/hr_HR/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>
	</body>
</html>
